package oopday02;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黑",2,"黑");
        dog.eat();
        dog.drink();
        dog.LookHome();
        dog.swim();

        Fish fish = new Fish("小金",1,"金");
        fish.eat();
        fish.drink();
        fish.swim();

        Chick chick = new Chick("小白",2,"红");
        chick.eat();
        chick.drink();
        chick.layEggs();
    }
}
